import 'package:flutter/services.dart';

import 'wifi_network.dart';

/// Convert a String to a ConnectivityResult value.
List<WifiNetwork> parseConnectivityResult(String val) {
  List<WifiNetwork> htResult = [];
  if (val.isEmpty) {
    return htResult;
  }
  try {
    htResult = WifiNetwork.parse(val);
  } on MissingPluginException catch (e) {
    print("MissingPluginException : ${e.toString()}");
  }
  return htResult;
}
